home *** CD-ROM | disk | FTP | other *** search
- global gCustomCursor, g3DObject, gRollAnimButton, gHardHatObject
-
- on mouseDown
- if objectp(gCustomCursor) then
- if the type of gCustomCursor = #camera then
- repeat with whichRoll = 0 to 2
- set rollChan to the firstRollChan of g3DObject + whichRoll
- if rollOver(rollChan) then
- exit repeat
- end if
- end repeat
- takePhoto(g3DObject, whichRoll + 1)
- else
- resetTool(g3DObject)
- end if
- else
- if not objectp(gRollAnimButton) then
- addHat(gHardHatObject, "HH3D" & string(random(3)))
- end if
- end if
- end
-